#ifndef CTRANSLATERESULTWIDGET_H
#define CTRANSLATERESULTWIDGET_H

#include "CTranslateResultItemWidget.h"

#include <QList>
#include <QWidget>

namespace Ui {
class CTranslateResultWidget;
}

class CTranslateResultWidget : public QWidget {
    Q_OBJECT

  public:
    explicit CTranslateResultWidget(QWidget* parent = nullptr);
    ~CTranslateResultWidget();

    void SetItemCount(int count);
    void AppendItemText(int index, const QString& text);

  private:
    Ui::CTranslateResultWidget* ui;
    QList<CTranslateResultItemWidget*> m_list;
};

#endif  // CTRANSLATERESULTWIDGET_H
